package com.srit.recipes.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.util.Date;

@Table
@Entity
@Getter
@Setter
public class EquipmentInfo extends RecipesId {

    @Basic
    @Column(name = "name")
    private String name;
    @Basic
    @Column(name = "num")
    private String num;
    @Basic
    @Column(name = "type")
    private Integer type;
    @Basic
    @Column(name = "brand")
    private String brand;
    @Basic
    @Column(name = "model")
    private String model;
    @Basic
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Column(name = "purchasetime")
    private Date purchasetime;
    @Basic
    @Column(name = "status")
    private String status;
    @Basic
    @Column(name = "location")
    private String location;


}
